<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>【众享空间】后台管理</title>
    <link rel="stylesheet" href="/static/common/layui/css/layui.css">
    <style>
        *{
            font-size:16px!important;
        }
        form {
            width: 500px;
        }
        input {
            width: 300px !important;
        }
    </style>
</head>
<body class="layui-layout-body " style="padding: 10% 33%">
<form class="layui-form layui-form-pane" action="">
    <div class="layui-form-item">
        <label class="layui-form-label">帐号</label>
        <div class="layui-input-inline">
            <input type="text" name="username" required lay-verify="required" placeholder="请输入帐号" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-inline">
            <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">验证码</label>
        <div class="layui-input-inline">
            <input type="text" name="verify" required lay-verify="required" placeholder="请输入验证码(看不清请点击验证码)" autocomplete="off" class="layui-input" maxlength="6">
        </div>
        <div class="layui-form-mid layui-word-aux" style="height:auto!important;padding: 0 0!important; margin-left: 26px;"><img src="/util/adminLoginnCaptcha.do" onclick="updataImg(this)" style="border:1px solid #e6e6e6;height: 36px;"></div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<script src="/static/common/js/jquery-3.3.1.min.js"></script>
<script src="/static/common/layui/layui.js"></script>
<script>
    layui.use('form', function () {
        var form = layui.form;
        form.on('submit(formDemo)', function (data) {
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
    function updataImg (obj) {
        $(obj).attr("src","/util/adminLoginnCaptcha.do?date="+new Date())
    }
</script>
</body>
</html>